wayland: Don't destroy the cairo surface when resizing it
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 23 Feb 2014 21:06:20 +0000 (16:06 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 23 Feb 2014 21:07:38 +0000 (16:07 -0500)
The code in GDK is incredibly broken and nobody is quite sure what's
right-side-up and what's upside down, but this breaks mutter-wayland
now, so let's remove it. It might leak, but we should probably do a
full restructuring of GDK drawing to fix it.

gdk/wayland/gdkwindow-wayland.c

index d980bf86995788059ff0ec0a59849bc302e7f2ac..82dafb21ff3d9c205a75b5a68087e5aa126e7c80 100644 (file)
@@ -1488,8 +1488,6 @@ gdk_window_wayland_resize_cairo_surface (GdkWindow       *window,
                                          gint             height)
 {
   /* cairo image surfaces cannot be resized */
-  cairo_surface_destroy (surface);
-
   return NULL;
 }